﻿using AutoMapper;
using T_vehicle.API.Application.Command.ExpensesCommand;
using T_vehicle.Domain;

namespace T_vehicle.API.Extensions
{
    public class ExpensesAuto:Profile
    {
        public ExpensesAuto()
        {
            //添加费用记录
            CreateMap<AddExpensesCommand, Expenses>().ReverseMap();
            //修改费用记录
            CreateMap<UpdateExpensesCommand, Expenses>().ReverseMap();
        }
    }
}
